<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml" 
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html">
	<head>
		<title>
		</title>	
	</head>
	<body>
		<ui:composition template="/Template/template01.xhtml">		
			<ui:define name="body">
			<link href="css/global.css" rel="stylesheet" type="text/css"/> 
			 <style>
			  	.lbl { cursor:pointer; text-decoration: underline; font-family: sans-serif; font-size: 11px; color: #021f91; }
			  </style>
			
			
				<h:form id="detailForm">
				<h:inputHidden id="method"></h:inputHidden>		
				<h:inputHidden value="#{user.idRole}" id="cborol" />
  <table width="95%" border="0" cellpadding="0" cellspacing="0" class="TablaBody1">
    <tr>
      <td colspan="2" align="right" class="CelTop">
      <h:graphicImage library="images" name="transp.gif" width="1" height="1"/>
      </td>
      <td width="6%" rowspan="3" align="right" valign="middle">&nbsp;</td>
    </tr>
    <tr>
      <td width="3%" height="10" align="right">
      <h:graphicImage library="images" name="flechanaranja.gif" width="11" height="13"/>
      </td>
     
	      <td width="91%">
		      <span class="TextoTitulosBlack">
		      	#{message.menuAdministracion}:
		      </span> 
		      <span class="TextoTitulos">
		      	#{message.solicitud}
		      </span>
	      </td>      
      
    </tr>
    <tr>
      <td height="19" align="right" class="CelUnder">&nbsp;</td>
      <td class="TextoTitulos">&nbsp;</td>
    </tr>
  </table>
  <table width="101%" border="0" cellpadding="0" cellspacing="0" class="TablaBody1">
    <tr>
      <td width="25" class="celBodyLeft">&nbsp;</td>
      <td width="771">
      <table width="85%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="18" valign="bottom" class="TextoTitulo2">
            	#{message.usr_DetailTitulo}
            </td>
          </tr>
      </table>
          <table width="85%" border="0" cellpadding="0" cellspacing="0" class="fondo-blanco">
            <tr align="center" >
            	
	              <td valign="bottom" nowrap="nowrap" class="TabOff">
		              <span class="FontTabOff">
		              	<h:commandLink  id="linkInfo" actionListener="#{solicitud.gotoInformationReq}" action="#{solicitud.processAction}" value="#{message.cfg_InformationInformacion}" styleClass="FontTabOff"/>
		              </span>
	              </td>
	              <td valign="bottom" nowrap="nowrap" class="TabOn">
		              <span class="FontTabOn">
		              	Casos de Prueba
		              </span>
	              </td>
	              
	              <td width="4" align="right" nowrap="nowrap" class="TitulosTablas">
	              <h:graphicImage library="images" name="transp.gif" width="1" height="1"/><h:graphicImage library="images" name="transp.gif" width="1" height="1"/>
	              
	              </td>
	              <td width="140" align="center" valign="bottom" nowrap="nowrap">
	              	
	              </td>
	              <td align="right" nowrap="nowrap" class="">&#160;</td>              	              
	              <td width="83" align="right" nowrap="nowrap">
	              	<span class="paginacion">
	              	    <h:commandLink id="abc" actionListener="#{solicitud.procesMenuQuery}" action="#{solicitud.processAction}" value="#{message.irAlListado}" rendered="#{container.vcType == '1'}"/>
						<h:commandLink id="abcd" actionListener="#{solicitud.aprobarRequerimiento}" action="#{solicitud.processAction}" value="#{message.irAlListado}" rendered="#{container.vcType == '2'}"/>
						<h:commandLink id="abcde" actionListener="#{solicitud.consultar}" action="#{solicitud.processAction}" value="#{message.irAlListado}" rendered="#{container.vcType == '3'}"/>
						<h:commandLink id="abcdef" actionListener="#{solicitud.crearRequerimiento}" action="#{solicitud.processAction}" value="#{message.irAlListado}" rendered="#{container.vcType == '4'}"/>
	              	</span>
	              </td>              
             
            </tr>
          </table>
        <table width="85%" border="0" cellpadding="0" cellspacing="0" class="fondo-blanco" dwcopytype="CopyTableCell">
            <tr align="left" >
              <td height="6" colspan="10" class="FondoCelAzul"><h:graphicImage library="images" name="transp.gif" width="1" height="1"/></td>
            </tr>
            <tr align="left" >
              <td height="1" colspan="10"><h:graphicImage library="images" name="transp.gif" width="1" height="1"/></td>
            </tr>
        </table>
        
         
              
        <table width="85%" border="1" cellpadding="5" cellspacing="1" bordercolor="#CCCCCC" class="">
            <tr align="center" >
              <td align="center" nowrap="nowrap" bgcolor="#FFFFFF">
               <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="TablaTabs">
             	 <tr align="left">
                    <td width="33%" height="22" class="TextoCuerpo1">
                    	ID Solicitud:&#160;&#160;#{solicitud.id}
                    </td>
                    <td width="33%" class="TextoCuerpo1">
                    	#{message.descripcion}:&#160;&#160;#{solicitud.description}
                    </td>
                    
                    <td width="34%" class="TextoCuerpo1">
                    	#{message.numero}:&#160;&#160;<h:outputText id="name" value="#{solicitud.number}" styleClass="Texbox3" />     
                    </td>
                  </tr>
                   <tr align="right" style="background-image: none !important;">
                    <td colspan="3">
                     <span class="paginacion">
                    	<h:commandLink id="abcxy" actionListener="#{solicitud.retornarCasoPruebaRevision}" action="#{solicitud.processAction}" value="#{message.irAlListado}"/>
                     </span>
                    </td>
                   </tr>
                  
                  
              </table>
              
              <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="TablaTabs">
              <tr align="left">
                    <td height="22" class="TextTabBody" colspan="3" style="text-align: left;">
                    	Crear Caso de Prueba:&#160;&#160;
                    </td>
                    
              </tr>
              
              
              
              
              <tr align="left">
                    <td width="33%" height="22" class="TextTabBody">
                    	Nombre:&#160;&#160;
                    </td>
                    <td width="0%" class="TextoCuerpo1">
								<h:outputText value="#{solicitud.namecp}" styleClass="Texbox3"/>         	
                    </td>
                    <td width="100%" align="left" ></td>
              </tr>
              
              <tr align="left">
                    <td width="33%" height="22" class="TextTabBody">
                    	Criticidad:&#160;&#160;
                    </td>
                    <td width="0%" class="TextoCuerpo1">  
										<h:outputText id="radio1x" value="Alta" rendered="#{solicitud.critcp =='2'}"/>
										<h:outputText id="radio2x" value="Baja" rendered="#{solicitud.critcp =='3'}" />
										<h:outputText id="radio3x" value="Normal" rendered="#{solicitud.critcp =='1'}"/>     	
                    </td>
                    <td width="100%" align="left" ></td>
              </tr>
              
              <tr align="left">
                    <td width="33%" height="22" class="TextTabBody">
                    	#{message.subproducto}:&#160;&#160;
                    </td>
                    <td width="0%" class="TextoCuerpo1">
                    	#{solicitud.nombreSubproducto}
                    </td>
                    <td width="100%" align="left" ></td>
              </tr>
              
              <tr align="left">
                    <td width="33%" height="22" class="TextTabBody">
                    	Codigo de caso de prueba:&#160;&#160;
                    </td>
                    <td width="0%" class="TextoCuerpo1">
								<h:outputText value="#{solicitud.codecp}" styleClass="Texbox3"/>         	
                    </td>
                    <td width="100%" align="left" ></td>
              </tr>
              
              <tr align="left">
                    <td width="33%" height="22" class="TextTabBody">
                    	Conciones de ejecucion:&#160;&#160;
                    </td>
                    <td width="0%" class="TextoCuerpo1">
								<h:outputText value="#{solicitud.condccp}" styleClass="Texbox3"/>         	
                    </td>
                    <td width="100%" align="left" ></td>
              </tr>
              
              <tr align="left">
                    <td width="33%" height="22" class="TextTabBody">
                    	Tipo:&#160;&#160;
                    </td>
                    <td width="0%" class="TextoCuerpo1">
							<h:outputText id="radio4x" value="Automatizada" rendered="#{solicitud.critcp =='1'}"/>
							<h:outputText id="radio5x" value="Manual" rendered="#{solicitud.critcp =='2'}" />	
                    </td>
                    <td width="100%" align="left" ></td>
              </tr>
              
              
              <tr align="left">
                    <td width="33%" height="22" class="TextTabBody">
                    	Descripcion:&#160;&#160;
                    </td>
                    <td width="0%" class="TextoCuerpo1">
								<h:outputText value="#{solicitud.desccp}"  styleClass="Texbox3"/>         	
                    </td>
                    <td width="100%" align="left" ></td>
              </tr>
              
              <tr align="left">
                    <td width="33%" height="22" class="TextTabBody">
                    	Resultado esperado:&#160;&#160;
                    </td>
                    <td width="0%" class="TextoCuerpo1">
								<h:outputText value="#{solicitud.rescp}" styleClass="Texbox3"/>         	
                    </td>
                     <td width="100%" align="left" ></td>
              </tr>
              
              <tr align="left">
                    <td width="33%" height="22" class="TextTabBody">
                    	Observacion:&#160;&#160;
                    </td>
                    <td width="0%" class="TextoCuerpo1">
								<h:inputTextarea value="#{solicitud.obscp}" styleClass="Texbox3" rendered="#{container.vcType == '3' and solicitud.revisar == '1'}"/>
								<h:inputTextarea value="#{solicitud.obscp}" styleClass="Texbox3" rendered="#{container.vcType == '3' and solicitud.ejecutar == '1'}"/>         	
								<h:outputText value="#{solicitud.obscp}" styleClass="Texbox3" rendered="#{container.vcType == '1' or (container.vcType == '3'  and solicitud.revisar != '1' and solicitud.ejecutar != '1')}"/>         	
                    </td>
                     <td width="100%" align="left" >
                     	<h:outputText style="color: red;" value="&#160;&#160;*" rendered="#{container.vcType == '3' and solicitud.revisar == '1'}"/>
                     	<h:outputText style="color: red;" value="&#160;&#160;*" rendered="#{container.vcType == '3' and solicitud.ejecutar == '1'}"/>
                     </td>
              </tr>
              
              </table>
              <table width="90%">
              
              
               
              
               <tr align="left">
                   
                    <td colspan="3" width="100%" class="TextoCuerpo1">
                    		
								<table width="85%">
									<tr>
										<td>    
										
										<h:panelGroup rendered="#{solicitud.requirementData == '[]'}"> 
											<span style="padding-left: 50%;">#{message.nodata}</span>
										</h:panelGroup>	
										
										<h:panelGroup rendered="#{solicitud.requirementData != '[]'}"> 
											<h:dataTable id="data" value="#{solicitud.requirementData}" 
														 var="ax" rows="50" border="0" cellpadding="0" cellspacing="1"
														 styleClass="TablaFondo2Listado" binding="#{solicitud.dataTableDataTestCase}">
												
									 
												<h:column id="c0202x" >
													<f:facet name="header">														
										                		Campo			
													</f:facet>
													<h:outputText id="v00202xy" value="#{ax.vcName}" styleClass="FondoCel3"/>
												</h:column>	
												
												<h:column id="c0022x" >
													<f:facet name="header">														
										                	Valor				
													</f:facet>
													<h:outputText id="v00022xy" value="#{ax.vcValor}" styleClass="FondoCel3"/>
												</h:column>	
												
											</h:dataTable>	
										</h:panelGroup>
										</td>
									</tr>
							  	</table>	
                    </td>
              </tr>
              
              
              
              
              
              
              
              
              
              <tr valign="middle" align="left">
              		<td align="left" class="TextTabBody" style="color: red !important; text-align: left !important;">
	                    <h:outputText value="(*) Campos obligatorios" rendered="#{container.vcType == '3' and solicitud.revisar == '1'}"/>
	                    <h:outputText value="(*) Campos obligatorios" rendered="#{container.vcType == '3' and solicitud.ejecutar == '1'}"/>
                   </td>
              
                    <td height="22" class="TextTabBody" colspan="2">
              	            	<h:commandButton actionListener="#{solicitud.aprobarCasoPrueba}"  action="#{solicitud.processAction}" value="Aprobar" styleClass="botonmediano" rendered="#{container.vcType == '3' and solicitud.revisar == '1'}"/>
              	            	<h:commandButton actionListener="#{solicitud.observarCasoPrueba}"  action="#{solicitud.processAction}" value="Observar" styleClass="botonmediano" rendered="#{container.vcType == '3' and solicitud.revisar == '1'}"/>
                    			<h:commandButton actionListener="#{solicitud.aprobarEjecucionCasosPrueba}"  action="#{solicitud.processAction}" value="Aprobar ejecucion" styleClass="botonmediano" rendered="#{container.vcType == '3' and solicitud.ejecutar == '1'}"/>
                    			<h:commandButton actionListener="#{solicitud.observarEjecucionCasoPrueba}"  action="#{solicitud.processAction}" value="Observar ejecucion" styleClass="botonmediano" rendered="#{container.vcType == '3' and solicitud.ejecutar == '1'}"/>
                    			
                    </td>
                  </tr>
              
              
              </table>
              
              
              
             				
				    
              </td>
            </tr>
        </table>
        
        <p>&nbsp;</p></td>
    </tr>
  </table>
  <br/>
  <br/>	
				<h:inputHidden id="DivFor"></h:inputHidden></h:form>
			</ui:define>
		</ui:composition>
	</body>	
</html>